<template>
	<view :class="`item flex_center item${index+1}`">
		<view class="avatar">
			<image :src="item.avatar" mode="aspectFill"></image>
		</view>
		
		<view class="right">
			<view class="nickname hidden">{{ item.nickname }}</view>
			<view class="tags flex_center">
				<image :src="$util.prefix(`public/sex_${item.gender}_no_bg.png`)" mode=""></image>
				<view class="flex_center">
					<text>{{ item.age }}岁</text>
				</view>
				
				<view class="view2 flex_center">
					<text>{{ item.city }}</text>
				</view>
			</view>
			
			<view class="sign hidden_2">
				{{ item.sign || '' }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'group',
		props: {
			item: {
				type: Object,
				default: () => {},
			},
			index: {
				type: Number,
				default: 0,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	.item {
		padding: 24rpx 24rpx 0;
		width: calc(100vw - 28rpx);
		overflow: hidden;
		background: #FFFFFF;
		align-items: flex-start;
		
		.avatar {
			overflow: hidden;
			width: 96rpx;
			height: 96rpx;
			border-radius: 48rpx;
			margin-right: 16rpx;
			image {
				width: 96rpx;
				height: 96rpx;
			}
		}
		
		.right {
			overflow: hidden;
			flex: 1;
			padding-bottom: 24rpx;
			border-bottom: 2rpx solid #F1F1F1;
			.nickname {
				font-size: 32rpx;
				color: #131313;
				line-height: 44rpx;
			}
			
			.tags {
				margin: 12rpx 0;
				
				image {
					width: 24rpx;
					height: 24rpx;
					margin-right: 8rpx;
				}
				
				view {
					background: #E3F0FF;
					border-radius: 4rpx;
					padding: 8rpx 18rpx;
					margin-right: 12rpx;
					
					text {
						font-size: 20rpx;
						color: #459BFD;
						line-height: 20rpx;
					}
				}
				
				.view2 {
					background: #FFEAEE;
					text {
						color: #FD2A53;
					}
				}
			}
			
			.sign {
				font-size: 26rpx;
				color: #999999;
				line-height: 36rpx;
			}
		}
	}
	
	.item1 {
		border-radius: 16rpx 16rpx 0 0;
	}
	
</style>
